//
//  NSData+Image.h
//  campus
//
//  Created by xl on 2019/12/24.
//  Copyright © 2019 xl. All rights reserved.
//


#import <Foundation/Foundation.h>



@interface NSData (Image)

+ (NSData *)dataWithHexString:(NSString *)hexstring;

/**
 *  调整图片尺寸和大小
 *
 *  @param sourceImage  原始图片
 *  @param maxImageSize 新图片最大尺寸
 *  @param maxSize      新图片最大存储大小
 *
 *  @return 新图片imageData
 */
+ (NSData *)reSizeImageData:(UIImage *)sourceImage maxImageSize:(CGFloat)maxImageSize maxSizeWithKB:(CGFloat) maxSize;

@end


